package util

import (
	"crypto/md5"
	"fmt"
	"io"
)

// md5加密
func Md5String(str string) (md5str string) {
	w := md5.New()
	io.WriteString(w, str)
	md5str = fmt.Sprintf("%x", w.Sum(nil))

	return
}
